package com.sourceCode.web.controller;

import com.sourceCode.web.exception.InvalidUserException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liyanhao9999@outlook.com
 * @date 2022/4/15 3:13
 */
@RestController
public class DemoApplication {
	public DemoApplication() {
		System.out.println("DemoApplication....");
	}

	@GetMapping("/helloworld")
	public String hello() {
		System.out.println("进入helloworld");
		if(true){
			throw new InvalidUserException();
		}
		return "Hello World!";
	}

}
